package com.gy.springboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.gy.springboot.entity.Bean;

@RestController
public class DateTestController {
    
    Logger logger = LoggerFactory.getLogger(getClass());

    @PostMapping("/test/date")
    public String testDate(@RequestBody Bean bean) {
        logger.info("bean={}", bean);
        return bean.toString();
    }

}